import service from "./index.js";

// 获取列表数据
export function admin() {
    return service({
        url: '/admin/admin',
        method: 'get',
    })
}
// 添加
export function adminAdd(data) {
    return service({
        url: '/admin/admin',
        method: 'post',
        data: data,
    })
}
// 删除
export function mixinDelete(id) {
    return service({
        url: '/admin/admin/' + id,
        method: 'delete',
    })
}
// 获取详情
export function getAdmin(id) {
    return service({
        url: '/admin/admin/' + id,
        method: 'get'
    })
}
// 修改
export function adminEdit(data) {
    return service({
        url: '/admin/admin',
        method: 'put',
        data: data
    })
}